import {post,get,del,put} from '@/utils/service'

export const getRoleList=data=> {
  return get({
        url:"/api/sys_role/list",
        data,
        isAdmin:true
    })
}

export const addRole=data=> {
  return post({
        url:"/api/sys_role/add",
        data,
        isAdmin:true
    })
}

export const updateRole=data=> {
  return put({
        url: "/api/sys_role/update",
        data,
        isAdmin:true
    })
}

export const deleteRole=data=> {
  return del({
        url:"/api/sys_role/delete?id="+data.id,
        isAdmin:true
    })
}